package com.kclmedu.sst.controller;

import com.kclmedu.sst.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class IndexController {

    @Autowired
    private IUserService userService;

    @RequestMapping(value = "index")
    public String index() {
        System.out.println("--- index method");
        System.out.println(userService.getName());
        return "main";
    }
}
